// 定义临床研究支持的权限配置
const permissions = {
    'trial-admin': [
        '/trial',
        '/trial/apply',
        '/trial/apply/:trialCode',
        '/trial/entry',
        '/trial/entry/:trialCode',
        '/trial/confirm',
        '/trial/confirm/:trialCode',

        '/trial/admin/trials',
        '/trial/admin/trials/:trialId',
        '/trial/admin/trials/:trialId/dashboard',

        '/trial/admin/trials/:trialId/subjects',

        '/trial/subjects/:subjectId',                       //A-S
        '/trial/admin/trials/:trialId/subjects/:subjectId', //A-S
        '/trial/subjects/:subjectId/info',                  //A-S
        '/trial/admin/trials/subjects/:subjectId/info',     //A-S
        '/trial/subjects/:subjectId/exit',                  //A-S
        '/trial/subjects/:subjectId/finish',                //A-S
        '/trial/subjects/:subjectId/cancel',                //A-S
        '/trial/subjects/:subjectId/profiles',              //A-S
        '/trial/subjects/:subjectId/supply-info',           //A-S
        '/trial/subjects/:subjectId/receiver-info',         //A-S

        '/trial/subjects/:subjectId/profile',               //A--
        '/trial/subjects/:subjectId/update-status',         //A--
        '/trial/subjects/:subjectId/group',                 //A--
        '/trial/subjects/:subjectId/update-supply',         //A--
        '/trial/subjects/:subjectId/approve',               //A--
        '/trial/admin/trials/subjects/:subjectId/approve',  //A--  
        '/trial/subjects/:subjectId/follow-ups',            // 随访报告API

        '/trial/my/trials',
        '/trial/my/trials/:trialId/follow',
        '/trial/track/:trialCode',
        '/trial/diary/list/:trialId',
        '/trial/diary/:diaryId',
        '/trial/diary/:diaryId/edit',
        '/trial/diary/create/:trialId',
        '/trial/exit/:trialCode'
    ],
    'trial-investigator': [
        '/trial/subjects/:subjectId/follow-ups'            // 随访报告API
    ],
    'trial-subject': [
        '/trial',
        '/trial/apply',
        '/trial/apply/:trialCode',
        '/trial/entry',
        '/trial/entry/:trialCode',
        '/trial/confirm',
        '/trial/confirm/:trialCode',
        '/trial/my/trials',
        '/trial/my/trials/:trialId/follow',
        '/trial/track/:trialCode',
        '/trial/subjects/:subjectId',                       //A-S
        '/trial/admin/trials/:trialId/subjects/:subjectId', //A-S
        '/trial/subjects/:subjectId/info',                  //A-S
        '/trial/admin/trials/subjects/:subjectId/info',     //A-S
        '/trial/subjects/:subjectId/exit',                  //A-S
        '/trial/subjects/:subjectId/finish',                //A-S
        '/trial/subjects/:subjectId/cancel',                //A-S
        '/trial/subjects/:subjectId/profiles',              //A-S
        '/trial/subjects/:subjectId/supply-info',           //A-S
        '/trial/subjects/:subjectId/receiver-info',         //A-S
        '/trial/subjects/:subjectId/follow-ups',            // 随访报告API
        '/trial/diary/:diaryId',
        '/trial/diary/:diaryId/edit',
        '/trial/diary/create/:trialId',
        '/trial/exit/:trialCode'
    ]
};

module.exports = {
    permissions
}; 
